import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;


public class ConnectMenu extends JMenuBar{
	
	// Don't change
	private static final long serialVersionUID = 8120173097711647358L;
	
	JMenu		File		= new JMenu("File");
	JMenuItem	ExitItem	= new JMenuItem("Exit");
	
	public ConnectMenu(){
		File.setMnemonic(KeyEvent.VK_F);
		ExitItem.setMnemonic(KeyEvent.VK_C);
		ExitItem.setToolTipText("Exit Application");
		ExitItem.addActionListener(ExitAction);
		File.add(ExitItem);
		add(File);
	}
	
	ActionListener ExitAction = new ActionListener(){
		public void actionPerformed(ActionEvent event){
			System.exit(0);
		}
	};
	
}
